package com.jumi.microservice.enumerate;

import com.jumi.microservice.common.base.dto.AbstractEnum;

/**
 * @author by scw
 * @Date 2020/7/21 9:13
 */
public enum CouponOrderStatusEnum implements AbstractEnum<Byte> {
    //聚米订单状态: 1 已付款, 2 已结算, 3 已失效
    ORDER_PAY(1, "已付款"),
    ORDER_SETTLED(2, "已结算"),
    ORDER_EXPIRED(3, "已失效");

    private Byte code;

    private String message;

    CouponOrderStatusEnum(Integer code, String message) {
        this.code = code.byteValue();
        this.message = message;
    }

    @Override
    public Byte getCode() {
        return code;
    }

    public void setCode(Byte code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
